<template>
  <div class="recommends">
    <div v-for="item in recommends" class="recommendsItem">
      <a :href="item.link">
        <img :src="item.image" alt="">
        <div>{{item.title}}</div>
      </a>
    </div>
  </div>
</template>

<script>
  export default {
    name: "recommendView",
    props: {
      recommends: {
        type: Array,
        default() {
          return [];
        }
      }
    }
  }
</script>

<style scoped>
.recommends{
  display: flex;
  width: 100%;
  text-align: center;
  font-size: 12px;
  padding: 10px 0 15px;
  border-bottom: 8px solid #eee;
  z-index: -1;
}
  .recommendsItem{
    flex: 1;
  }
  .recommendsItem img{
    width: 70px;
    height: 70px;
  }
</style>
